export default {
  state: {
    //数据或者为状态
    node: {}
  },
  mutations: {
    //方法
    setNode(state, node) {
      //储存当前数节点
      state.node = node
    }
  },
  actions: {
    getNode({ commit }, node) {
      commit('setNode', node)
    }
  }
}
